home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
basic
/
vbmake.exe
/
MM.DOC
< prev
next >
Wrap
Text File
|
1993-05-05
|
3KB
|
74 lines
This is a brief note on the settings for MM.INI
Type MM /? to get information about setting up a MM.INI file.
COMPILE = <filespec> specifies your compiler.
Eg: COMPILE = C:\VBDOS\BIN\BC
You should have one COMPILE statement.
LINK = <filespec> specifies your linker.
Eg: LINK = C:\VBDOS\BIN\LINK
You should have one LINK statement.
COMPFLAGS = <expression> specifies switches used by the compiler.
Eg: COMPFLAGS = /O /Zi
You may have any number of COMPFLAGS statements
LINKFLAGS = <expression> specifies switches used by the linker.
Eg: LINKFLAGS = /Ex /Co
You may have any number of LINKFLAGS statements
LIB = <filespec>[;] specifies a library file.
You may have any number of LIB statements
or none at all.
Eg:
LIB = C:\VBDOS\LIB\VBDCL10E.LIB
LIB = C:\VBDOS\LIB\INDEX.LIB
LIB = D:\VER1.2\GRAPHIC.LIB
MM will put these 3 libraries in as dependencies for the EXE file and also
into the link file, then prompt for more libraries. Just press ENTER when you
have finished entering libraries. If you don't wish to be prompted for
libraries put this line into MM.INI:
LIB = ;
This prevents MM from asking the user for more libraries.
Also, any LIB = statements after this line will be ignored.
OBJDIR = <dirspec>
Eg: OBJDIR = C:\VBDOS\OBJFILES
This allows you to specify where all .OBJ files are put.
If this line is omitted from MM.INI, the .OBJ file is put into the same
directory AS its source file.
The line "OBJDIR=." will cause .OBJ files to be put into the current
directory i.e. the directory from which NMAKE was invoked.
You may have one OBJDIR statement, or none at all.
REPLACE = OldString//NewString
Eg: REPLACE=STB//BAS would cause a file INPUT.STB to be replaced in the
makefile with INPUT.BAS
In fact file firSTBas.bas would be replaced with firBASas.bas because
all occurances of STB would be changed, so be careful. It would be
safer to use: REPLACE = .STB//.BAS
REPLACE = OldString/NewString1[,NewString2[,NewStringn[,....
(Note the single slash as opposed the the double slash (//) above.)
OldString is replaced with NewString1 to create a new file name. If
the resulting file is in its directory, this file is put into the
makefile. If not, NewString2 is tried. And so on until a valid file
is found.
Use this if you wish to stub out some files for running in the
environment to save memory. For example: MONITOR.STB may have been
used to stub out either MONITOR.FRM or MONITOR.BAS though it is not
immediately obvious which one. MM can resolve this by putting the
line REPLACE = .STB/.BAS,.FRM into MM.INI
You may have any number of REPLACE statements
CheckIncludes = True|False
This specifies whether MM looks through source files to see if they
have included any other files. If they have, then changing an INCLUDE
file should cause the target to be rebuilt. Source files need to be
saved in text format for this facility to work.